var register = {
	init : function() {
		$('#registerForm').validationEngine({
	        promptPosition:'centerRight',
	        scroll: false
	    });
		$("#register").click( function () { register.register($(this));});
		$("#loginName").attr('placeholder', '会员名/邮箱/手机');
		$('#registerForm').bind('keydown', function (e) {
            var key = e.which;
            if (key == 13) {
                e.preventDefault();
                register.register();
            }
        });
//		$("#nameInput").blur( function () { register.checkName($(this));});
	}, 
	register : function() {
        $("#loginName").val($("#email").val()) ;
        $("#registerForm").submit();
	},
	checkName : function() {
//		$('#nameSpan').html();
	}
};

$(document).ready(register.init);